#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QThread>
#include <QtCore>
#include <QMessageBox>
#include <QCloseEvent>
#include <QLabel>
#include <iostream>
#include <QMutex>

#include "beeldverwerking.h"
#include "slist.h"

#define APP_NAME ("Amazeing APP")
#define APP_REV  ("V1.0.0.0")

using namespace std;

class Thread : public QThread
{
	Q_OBJECT

public:
	Thread();
	~Thread();

private:
	void run();
};

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
	Q_OBJECT

public:
	explicit MainWindow(QWidget *parent = 0);
	~MainWindow();
	void closeEvent (QCloseEvent *event);

private slots:
	void on_tresholdSelect_valueChanged(int arg1);
	void on_tresholdSlider_valueChanged(int value);
	void on_spelStart_clicked();
	void on_spelPauze_clicked();
	void on_camVerbind_clicked();
	void on_timer();

private:
	Ui::MainWindow *ui;
	Thread* ThImgPcs;
	bool camConnect;
	bool gameStart;
	bool gamePauze;
	bool speelveldInUse;
	QTimer *timer;
    QLabel lblWin;
};

#endif // MAINWINDOW_H
